package com.wins.bbs.service.impl;

import java.util.List;

import com.wins.bbs.dao.UserDao;
import com.wins.bbs.entity.User;
import com.wins.bbs.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserDao userDao;

    @Override
    public List<User> listAllUser() {
        return userDao.listAllUser();
    }

    @Override
    public int createUser(final User u) {
        return userDao.insertUser(u);
    }
}
